package router

import (
	"github.com/gin-gonic/gin"
	"onerk4/zk2/api/middle"
	"onerk4/zk2/common/pkg"
)

func LoadRouter(r *gin.Engine) {
	r.POST("/login", Login)
	r.GET("/courseList", CourseList)
	r.GET("/courseInfo", CourseInfo)
	r.Use(middle.Middel())
	r.Use(pkg.JWTAuth("2209a"))
	r.POST("/reservationCourse", ReservationCourse)
	r.POST("/queryReservationCourse", QueryReservationCourse)
	r.POST("/queryReservationCourseInfo", QueryReservationCourseInfo)
	r.POST("/delQueryReservation", DelQueryReservation)
}
